
//引入动画
require('animate.css')


//字体图标引入
// require()
require('./advert.less')

document.addEventListener('DOMContentLoaded',function(){
    let timebox = document.querySelector('#timebox')
    // console.log(timebox);ok
    
    let timenum = 5
    setInterval(function () {
        timenum--
        // console.log(timenum);ok
    
        if (timenum === 0) {
            location.href = './login.html'
        } else {
            timebox.textContent = timenum + 's'
        }
    }, 1000)
    //点击跳过  跳转到登录页面
    let time = document.querySelector('.time')
    // console.log(time);
    time.addEventListener('click', function () {
        location.href = './login.html'
    })
    
})

